package com.juzi.AbstractClass.demo;

public class GoldCard extends Card{
    @Override
    public void pay(double money) {
        System.out.println("您当前消费：" + money);
        System.out.println("您的卡片余额为：" + getMoney());
        //优惠价
        double rs = money * 0.8;
        System.out.println("您实际支付：" + rs);
        //更新用户余额
        setMoney(getMoney() - rs);
    }
}
